-- GENERATED SPELL FOR [Smolderthorn Berserker] --


function spell0_9268(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(8269,pUnit)
pUnit:RegisterEvent('Sorts_9268', 592, 1)
end

function spell1_9268(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(17547,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9268', 5329, 1)
end

function spell2_9268(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(13446,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9268', 580, 1)
end

function Sorts_9268(pUnit, Event)
local choix_sorts_9268 = math.random(0, 2)
if choix_sorts_9268 == 0 then
pUnit:RegisterEvent('spell0_9268', 1, 1)
end
if choix_sorts_9268 == 1 then
pUnit:RegisterEvent('spell1_9268', 1, 1)
end
if choix_sorts_9268 == 2 then
pUnit:RegisterEvent('spell2_9268', 1, 1)
end
end

function mob9268_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9268', math.random(1500, 3000), 1)
end

function mob9268_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9268_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9268_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9268, 1, 'mob9268_Action')
RegisterUnitEvent(9268, 2, 'mob9268_Leave')
RegisterUnitEvent(9268, 3, 'mob9268_Kill')
RegisterUnitEvent(9268, 4, 'mob9268_Die')
